<?php
$this->load->view('admin/layout/head', array('title'=>"订单管理",'nav'=>'order'), FALSE);
$this->load->helper('form');
?>
<style>
.list-group-item .good-img {
	width: 100px;
	height: 100px;
	float: left;
	margin-right: 5px;
}
</style>
<div id="container">
	<h4>退货详情</h4>
	<a onclick="window.history.back()" class="btn btn-primary">返回</a>
	<table class="table table-bordered table-striped table-hover scroll-table">
		<thead >
			<tr>
				<th class="text-center">序号</th>
				<th class="text-center">商品名称</th>
				<th class="text-center">单价</th>
				<th class="text-center">退款数量</th>
				<th class="text-center">退款金额</th>
				<th class="text-center">vat</th>
				<th class="text-center">退换货</th>
				<th class="text-center">货损数量</th>
			</tr>
		</thead>
		<tbody class="text-center">
			<?php foreach ($refunds as $key => $value): ?>
				<tr id="<?= $value['id'] ?>">
					<td><?= $value['id'] ?></td>
					<td><?= $value['product']['title'].' '.$value['item']['title'] ?></td>
					<td><?= $value['item']['price'] ?></td>
					<td><?= $value['qty'] ?></td>
					<td><?= $value['money'] ?></td>
					<td><?= $value['item']['tax'] ?></td>
					<td><?= $value['type'] == 1 ? '换货' : '退货' ?></td>
					<td><?= $value['is_damaged'] ? $value['qty'] : '' ?></td>
				</tr>
			<?php endforeach ?>
		</tbody>
	</table>
</div>
<?php
$this->load->view('admin/layout/footer');
?>
<script>
</script>
